package cn.zhou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/***
 * 加过滤器解决乱码
 */
@Controller
public class Encoding {
    @RequestMapping("/encoding")
    public String test(String name, Model model){
        model.addAttribute("msg",name);
        System.out.println(name);
        return "demo";
    }
}
